/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.ts.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.ts.domain.po.ExaminationRecordPO;
import com.xy.biz.ts.domain.query.ExaminationRecordQuery;

/**
 *
 *
 * @author wcs
 * @date 2021-3-10
 */
public interface ExaminationRecordDao {

	/**
	 * 保存
	 *
	 * @param examinationRecordPO
	 */
	int saveExaminationRecord(ExaminationRecordPO examinationRecordPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllExaminationRecord(Collection<ExaminationRecordPO> collection);

	/**
	 * 更新
	 *
	 * @param examinationRecordPO
	 */
	int updateExaminationRecord(ExaminationRecordPO examinationRecordPO);

	/**
	 * 删除
	 *
	 * @param examinationRecordId
	 */
	int deleteExaminationRecord(Long examinationRecordId);

	/**
	 * 查找一个
	 *
	 * @param examinationRecordId
	 * @return
	 */
	ExaminationRecordPO getExaminationRecord(Long examinationRecordId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<ExaminationRecordPO> listExaminationRecordById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<ExaminationRecordPO> listExaminationRecord(ExaminationRecordQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countExaminationRecord(ExaminationRecordQuery query);

}
